<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>青年公寓系统 - 服务管理修改</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/add.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/lib/bp.css">

<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/jquery-1.8.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
	.breadcrumb{
		margin-bottom:0;
	    padding-bottom: 20px;
	}
	.breadcrumb,.breadcrumb li{
		font-size:20px;
		background: white;
		line-height: 50px;
	}
	.breadcrumb li a:hover{
		text-decoration: underline;
	}
	.form-control{
		height: auto;
	}
	.form-group{
		overflow: hidden;
		margin-bottom: 30px;
	}
	.sub{
		width:300px;
		margin-left:150px;
		display: flex;
		justify-content: space-around;
	}
	.btn{
		width: 80px;
	}

</style>
</head>
<body style="background: #f5f5f5">
	<div style="margin: 15px 30px;">
		<div style="border-radius:5px;">
			<ol class="breadcrumb">
				<li><a href="${pageContext.request.contextPath}/admin">服务管理</a></li>
				<li><a href="${pageContext.request.contextPath}/listFlatplay?index=1">公寓活动</a></li>
				<li class="active">修改活动</li>
			</ol>
			<div style="padding: 0 150px;overflow: hidden;background: white;">
					<!-- onsubmit="subForm()" -->
				<form action="${pageContext.request.contextPath}/updateFlatplay" method="post" 
					  class="form-horizontal" >
					  <input type="hidden" name="fp_id" value="${flay.fp_id }"/>
					 <div class="form-group">
					    <label class="col-sm-2 control-label">开始时间</label >
					    <div class="col-sm-5">
					    	<input class="form-control" name="bgtime" placeholder="开始时间" value="${flay.fp_start_date }" onfocus="WdatePicker()">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">结束时间</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="endtime" placeholder="结束时间" value="${flay.fp_end_date }" onfocus="WdatePicker()">
					    </div>
					  </div>
					  <div class="form-group">
				    	<label  class="col-sm-2 control-label">主题</label>
				    	<div class="col-sm-5">
				    		<input class="form-control" name="fp_topic" placeholder="主题" value="${flay.fp_topic }">
				    	</div>
				  	</div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">内容介绍</label>
					    <div class="col-sm-5">
					    	<textarea class="form-control" cols="50" rows="3" name="fp_content" placeholder="内容介绍">${flay.fp_content }</textarea>
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">地点</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="fp_place" placeholder="地点" value="${flay.fp_place }">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">费用</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="fp_money" placeholder="费用" value="${flay.fp_money }">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">组织方</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="fp_organizer" placeholder="组织方" value="${flay.fp_organizer }">
					    </div>
					  </div>
					  <div class="sub" >
					 		<input type="submit" value="修改" class="btn btn-info">
					 		<input type="button" value="取消" class="btn btn-info" onclick="window.history.back();">
					  </div>
				</form>
			</div>
		</div>
		
	</div>
	<!-- 表单验证待完成 -->
	<script type="text/javascript">
		
	</script>
</body>
</html>